# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=nlmon
pkgver=0.3_git20160406
pkgrel=0
verbase=0.3
pkgdesc="A lightweight udevadm monitor replacement"
url="http://git.r-36.net/nlmon/"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="linux-headers"
install=""
subpackages="$pkgname-doc"
source="https://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz"

disturl="dev.alpinelinux.org:/archive/$pkgname"
reporev="5881cff90359800b1d01ebc0bf35f53f4a67815d"
giturl="git://git.r-36.net/$pkgname"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	make CFLAGS="$CFLAGS \${INCS} \${CPPFLAGS}" \
		LDFLAGS="$LDFLAGS \${LIBS}" CC="${CC:-gcc}" \
		-C "$_builddir" || return 1
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr \
		-C "$_builddir" install || return 1
}

md5sums="126daa071ad3aefd8d30a5070280045b  nlmon-0.3_git20160406.tar.gz"
sha256sums="912937f4aeac73fafb109a70447fd8df8b4c12bdcfe74776d638ab7d75fa5546  nlmon-0.3_git20160406.tar.gz"
sha512sums="634224e7b8f7f4cb8400210005f692e880171e2a1fa20824796c7db86a7ba54f69bb13f71c721e2a04105e8bd0a5dcd969ee09e472e8bf95e944ec5e345ccf9d  nlmon-0.3_git20160406.tar.gz"
